package com.weibo.view.composite;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import swing2swt.layout.BorderLayout;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Button;
import swing2swt.layout.FlowLayout;
/**
 * 写微博的组件
 */
public class InputWeiboComposite extends Composite {
	private Text text;

	/**
	 * Create the composite.
	 * @param parent
	 * @param style
	 */
	public InputWeiboComposite(Composite parent, int style) {
		super(parent, style);
		setLayout(new BorderLayout(0, 0));
		text = new Text(this, SWT.MULTI|SWT.WRAP|SWT.V_SCROLL|SWT.BORDER);
		text.setLayoutData(BorderLayout.CENTER);
		Label lblNewLabel = new Label(this, SWT.NONE);
		lblNewLabel.setAlignment(SWT.RIGHT);
		lblNewLabel.setLayoutData(BorderLayout.NORTH);
		lblNewLabel.setText("发布请遵守社区公约,还可以输入140字");
		Button btnNewButton = new Button(this,SWT.BORDER);
		btnNewButton.setLayoutData(BorderLayout.EAST);
		btnNewButton.setText("发布");
		Composite composite = new Composite(this, SWT.None);
		composite.setLayoutData(BorderLayout.SOUTH);
		composite.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
		Button btnNewButton_1 = new Button(composite, SWT.NONE);
		btnNewButton_1.setText("表情");
		Button btnNewButton_2 = new Button(composite, SWT.NONE);
		btnNewButton_2.setText("图片");
		Button btnNewButton_3 = new Button(composite, SWT.NONE);
		btnNewButton_3.setText("视频");
		Button btnNewButton_4 = new Button(composite, SWT.NONE);
		btnNewButton_4.setText("音乐");
		Button btnNewButton_5 = new Button(composite, SWT.NONE);
		btnNewButton_5.setText("话题");
		Button btnNewButton_6 = new Button(composite, SWT.NONE);
		btnNewButton_6.setText("投票");
	}

	@Override
	protected void checkSubclass() {
	}

}
